import java.util.*;
public class Main
{
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);

        double w = cin.nextDouble();
        double h = cin.nextDouble();

        if(w<=0||h<=0||w>727||h>2.72)
        {
            System.out.printf("input out of range\n");
            cin.close();
            return;
        }
        double bmi = w/(h*h);
        if(bmi<18.5)
            System.out.printf("thin\n");
        else if(bmi>=18.5&&bmi<24)
            System.out.printf("fit\n");
        else if(bmi>=24&&bmi<28)
            System.out.printf("overweight\n");
        else
            System.out.printf("fat\n");
        cin.close();
    }
}